package com.hkd.common.api.constants;

/**
 * auth 常量
 *
 * @author lvlinguang
 * @date 2020-12-26 16:03
 */
public interface AuthConstants {

    /**
     * 认证信息Http请求头
     */
    String JWT_TOKEN_HEADER = "Authorization";

    /**
     * JWT令牌前缀
     */
    String JWT_TOKEN_PREFIX = "Bearer ";

    /**
     * jwt token key
     */
    String JWT_TOKEN_KEY = "jti";

    /**
     * jwt 用户id
     */
    String JWT_USER_Id = "userId";

    String JWT_ACCOUNT="account";

    /**
     * jwt 用户类别
     */
    String JWT_USER_TYPE = "userType";

    /**
     * 用户token缓存
     */
    String USER_ACCESS_TOKEN_PREFIX = "rapid_oauth:auth_to_access:";

}
